package com.hegaoye.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;


@RestController
public class AccountCtrl {

    @Autowired
    private RestTemplate restTemplate;
    
	@GetMapping("/load")
	public String listCity() {
		// 通过应用名词来查找
		String body = restTemplate.getForEntity("http://provider/account/load", String.class).getBody();
	    return body;
	}

}
